<?php
/**
 * @date        <!-- phpDesigner :: Timestamp [08-07-2010 00:02:10] -->
 * @filesource  configuration.smarty.php
 * @package     WebCms
 * @copyright	Copyright (C) 2010
 * @author      Sérgio 'Horizak' Alves
 */

// Sem acesso directo
defined('_WEXEC') or die('Restricted access');

// Inclui a class do smarty
require (ELIB_P.'smarty3'.DS.'Smarty.class.php');

class cms_smarty extends Smarty {
  /**
   * Construct
   */
  function __construct() {
    parent::__construct();

    $this->setCacheDir(SMARTYC_P);
    $this->setCompileDir(SMARTYCL_P);
    $this->setConfigDir(SMARTYCFG_P);

    $this->addPluginsDir(SPLUGIN_P);

    $this->setCaching(false);
  }
}

$objSmarty = new cms_smarty;
#if($cms->cfg['site']['debug']) $objSmarty->setDebugging(true);
$cms->_template($cms->cfg['site']['template']);
?>